KERNEL_DIR      := /usr/src/linux
INSTALL_MOD_DIR := drivers/eee
PWD             := $(shell pwd)

obj-m           := eee.o

all: eee
	
eee:
	@echo "Building ASUS EeePC driver..."
	cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules
	
clean:
	-rm -f *.o *.ko .*.cmd .*.flags *.mod.c Module.symvers
	-rm -rf .tmp_versions